package com.kuangstudy.controller;

import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * Description: 测试接口
 * Author: ryt
 * Version: 1.0
 * Create Date Time: 2021/12/21 14:14.
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    @PreAuthorize("hasAuthority('system:book:del')") // 判断是否具有test权限
    public String hello(){
        return "Hello,Spring Security";
    }

}
